﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Rose.Models.BirthModel>>" %>
<%@ Import Namespace="Rose.Helper" %>
<% CheckRelationHelpModel help = new CheckRelationHelpModel();
    string selfId = new CheckHelpModel().CheckCurrentUserId();
      %>

<div id="birthlist" class="list">
<div class="listhead"></div>
<div class="listcontent">
<%foreach (var item in Model)
  { %>
 <div class="recommend">
 <%if (help.IsFriendRelation(selfId, item.UserId))
   { %>
   <div class="imagepart"><a class="friendalbum" onclick="FriendAlbum(this);" data="<%=item.UserId %>"><img src="<%=item.ImagePath %>" class="headimage" /></a></div>
 <%}
   else
   { %>

   <div class="imagepart"><a class="publicalbum" onclick="PublicAlbum(this);" data="<%=item.UserId %>"><img src="<%=item.ImagePath %>" class="headimage" /></a></div>
 <%} %>


<div class="infopart"><p class="name"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=item.UserId}) %>"><%=item.Name %></a></p><p><%=item.WhenBirth %>生日</p></div>
<div class="actionpart"><p><a data="<%=item.UserId %>" class="addgift pointer">送礼物</a></p>
</div>
</div>

<%} %>
<div class="more"><p><a class="pointer">更多</a></p></div>

</div>


<div class="listbottom"></div>









</div>




